<!doctype html>
<html dir="ltr" lang="en-US">
	<?php get_header('head'); ?>
	<body>
		<?php get_header('nav'); ?>
		<section id="category_posts">
			<?php
				if (get_search_query())
					echo '<div class="query row"><p class="twelvecol last">results for "', get_search_query(), '"</p></div>';
					
				while (have_posts()) : the_post();
				
					echo '<div class="post row" id="', the_ID(), '">';
						category_preview();
					echo '</div>';
						
				endwhile;
				
				if (!have_posts() && !get_search_query()):
				
					echo '<div class="row">'; 
						echo '<div id="empty" class="twelvecol last">';
						echo '<h1>Looks like there\'s nothing here yet. Check back soon for updates.</h1>';
						echo '</div>';
					echo '</div>';
				
				endif;
				
				echo '<div class="row"><p class="twelvecol last" id="nextprev">'; posts_nav_link(); echo '</p></div>';
			?>
		</section>
		<?php get_footer(); ?>
	</body>
</html>
